package com.pqtest.api.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Getter
@Setter
public class CollectionDto {
    private Integer id;
    //@NotNull(message = "用户id不能为空")
   // @Min(1)
    //@JsonProperty("user_id")
    private Integer userId;
   // @NotEmpty(message = "题目id不能为空")
   // @Min(1)
    @NotNull(message = "题目id不能为空")
    @JsonProperty("item_id")
    private Integer itemId;
    @JsonProperty("answer_ids")
    private String answerIds;
    private Integer type;
}
